//
//  ViewController.m
//  FloatingView
//
//  Created by zgy on 2025/4/22.
//

#import "ViewController.h"
#import <WebKit/WebKit.h>

@interface ViewController ()


@property (nonatomic, strong) WKWebView *webview;



@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor orangeColor];
    
    WKWebViewConfiguration *cfg = [WKWebViewConfiguration new];
    _webview = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:cfg];
    [self.view addSubview:_webview];
    
    NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://m.baidu.com"]];
    [_webview loadRequest:req];
}


@end
